﻿@model GAE_PI.Catalogue

@{
    ViewBag.Title = "Nouveau Catalogue";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>NouveauCatalogue</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Information du nouveau catalogue</legend>

         <div class="editor-label">
            @Html.LabelFor(model => model.dateDebut)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.dateDebut)
            @Html.ValidationMessageFor(model => model.dateDebut)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dateOuvertureInscription)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.dateOuvertureInscription)
            
            @Html.ValidationMessageFor(model => model.dateOuvertureInscription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dateFermetureInscription)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.dateFermetureInscription)
            @Html.ValidationMessageFor(model => model.dateFermetureInscription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dateFin)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.dateFin)
            @Html.ValidationMessageFor(model => model.dateFin)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.maxActiviteEleve)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.maxActiviteEleve)
            @Html.ValidationMessageFor(model => model.maxActiviteEleve)
        </div>

        <p>
            <input type="submit" value="NouveauCatalogue" />
            @Html.ActionLink("Annuler", "ConsulterActivites", "ConsulterActivites", null,new { @class = "button" })
        </p>
    </fieldset>
    
    	<script id="scriptInit" type="text/javascript">
    	    $(document).ready(function () {
    	        $("#textbox1").wijinputdate(
			{
			    showTrigger: true
			});
    	    });

	</script>


}

